#include <iostream>

using namespace std;

decltype(auto) myref(int &r)
{
    return r;
}

int main()
{
    int a = 5;
    myref(a) = 10;
    cout<<a<<endl;
}